'use strict';

var _interopRequireDefault = require('@babel/runtime/helpers/interopRequireDefault');
Object.defineProperty(exports, '__esModule', {
  value: true,
});
exports.default = void 0;
var _objectSpread2 = _interopRequireDefault(require('@babel/runtime/helpers/objectSpread2'));
var _objectWithoutProperties2 = _interopRequireDefault(
  require('@babel/runtime/helpers/objectWithoutProperties'),
);
var _react = _interopRequireDefault(require('react'));
var _antd = require('antd');
var _createField = _interopRequireDefault(require('../../../createField'));
var _excluded = ['children'];
var Transfer = function Transfer(_ref) {
  var children = _ref.children,
    rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
  return /*#__PURE__*/ _react.default.createElement(
    _antd.Transfer,
    (0, _objectSpread2.default)({}, rest),
    children,
  );
};
var _default = (0, _createField.default)(Transfer, {
  defaultFormItemProps: {
    valuePropName: 'targetKeys',
  },
});
exports.default = _default;
